﻿using System;
using System.Xml.Serialization;

namespace Toybox.NicoSharp.Message
{
  using Utilities;

  [XmlRoot("chat_result")]
  public class ChatResult : EventArgs
  {

    #region Public Members

    /// <summary>
    /// No
    /// </summary>
    [XmlAttribute]
    public int no;

    /// <summary>
    /// コメント送信の成否
    /// </summary>
    [XmlAttribute]
    public ChatState status;

    /// <summary>
    /// スレッド
    /// </summary>
    [XmlAttribute]
    public string thread;

    #endregion Public Members

    
    #region Public Methods

    public static ChatResult Deserialize(string xml)
    {
      return Deserializer.XmlDeserializer<ChatResult>(xml);
    }

    #endregion Public Methods

  }
}
